package cn.chencaiju.exam.oop;

import org.junit.Test;

public class RectangleTest {
	@Test public void testRectangle() {
		Rectangle r1=new Rectangle(4,40);
		Rectangle r2=new Rectangle(3.8,35.9);
		System.out.println(r1);
		System.out.println(r1.getArea()+"\n"+r1.getPerimeter());
		System.out.println(r2);
		System.out.println(r2.getArea()+"\n"+r2.getPerimeter());
		
	}
}
